var delivery_detail = new Vue({
    el: "#delivery_detail",
    data() {
        return {
            services: services,
            userInfo:'',
            positionId:'',
            data:[]
        }
    },
    created () {
        this.userInfo = LoginStatus();
        if(this.userInfo==false)
            return false;
        this.positionId = GetQueryString('id');
        this.init();

    },
    methods:{
        init:function () {
            var that=this;
            $.ajax({
                url:that.services+"/user/position/"+this.positionId
                ,type:"get"
                ,async:false
                ,xhrFields: {
                    withCredentials: true
                }
                ,crossDomain: true
                ,success:function(res){
                    var check = ApiLoginStatus(res)
                    if(check==false)
                        return false;
                    console.log(typeof(res))
                    if(res.success){
                        that.data = res.data
                    }
                }
            });
        }
    }
});
